import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import toast from 'components/toast/index'
import FastClick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'

Vue.config.productionTip = false
//增加事件总线对象
Vue.prototype.$bus = new Vue()
//安装toast插件(显示提示)
Vue.use(toast)
//解决移动端300毫秒延迟
FastClick.attach(document.body)
//使用懒加载插件
Vue.use(VueLazyLoad, {
  loading: require('./assets/img/Strongload.jpg'),
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
